package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.QueryObject;
import java.util.List;

public interface DepartmentMapper {

    int insert(Department record);

    Department selectByPrimaryKey(Long id);

    List<Department> selectAll();

    int updateByPrimaryKey(Department record);

    Department selectByName(String name);

    void updateStateById(Long id);

    int selectCount(QueryObject qo);

    List<Department> queryForList(QueryObject qo);
}